package top.techqi.app.mcs51.usbdlk.tile

import android.view.LayoutInflater
import android.view.ViewGroup
import top.techqi.app.mcs51.R
import top.techqi.app.mcs51.databinding.ItemUsbdlkUartDataBinding

class UsbdlkUartSendPortion : UsbdlkUartDataPortion<
        UsbdlkUartSendPortion.Record,
        UsbdlkUartSendPortion.Holder>() {
    override fun onMakeHolder(inflater: LayoutInflater, container: ViewGroup): Holder {
        val view = inflater.inflate(R.layout.item_usbdlk_uart_data_send, container, false)
        val binding = ItemUsbdlkUartDataBinding.bind(view)
        return Holder(binding)
    }

    class Record(
        time: Long,
        hex: CharSequence,
        asc: CharSequence
    ) : UsbdlkUartDataPortion.Record(time, hex, asc)

    class Holder(binding: ItemUsbdlkUartDataBinding) :
        UsbdlkUartDataPortion.Holder<Record>(binding)
}
